package com.tian.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author tianwc 公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年10月10日 09:35
 * 在线刷题 1200+题和1000+篇干货文章：<a href="https://woaijava.cc/">博客地址</a>
 * <p>
 * 用户信息 明细表
 */
public class UserDetail implements Serializable {
    private Long id;

    private Long mainId;

    private Integer gender;

    private String headerImageUrl;

    private String idCardFrontUrl;

    private String idCardReverseUrl;

    private String address;

    private String currentAddress;

    private String firstContact;

    private String secondContact;

    private String emergencyContact;

    private String spouseName;

    private String spousePhone;

    private Integer maritalStatus;

    private Integer status;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getHeaderImageUrl() {
        return headerImageUrl;
    }

    public void setHeaderImageUrl(String headerImageUrl) {
        this.headerImageUrl = headerImageUrl == null ? null : headerImageUrl.trim();
    }

    public String getIdCardFrontUrl() {
        return idCardFrontUrl;
    }

    public void setIdCardFrontUrl(String idCardFrontUrl) {
        this.idCardFrontUrl = idCardFrontUrl == null ? null : idCardFrontUrl.trim();
    }

    public String getIdCardReverseUrl() {
        return idCardReverseUrl;
    }

    public void setIdCardReverseUrl(String idCardReverseUrl) {
        this.idCardReverseUrl = idCardReverseUrl == null ? null : idCardReverseUrl.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getCurrentAddress() {
        return currentAddress;
    }

    public void setCurrentAddress(String currentAddress) {
        this.currentAddress = currentAddress == null ? null : currentAddress.trim();
    }

    public String getFirstContact() {
        return firstContact;
    }

    public void setFirstContact(String firstContact) {
        this.firstContact = firstContact == null ? null : firstContact.trim();
    }

    public String getSecondContact() {
        return secondContact;
    }

    public void setSecondContact(String secondContact) {
        this.secondContact = secondContact == null ? null : secondContact.trim();
    }

    public String getEmergencyContact() {
        return emergencyContact;
    }

    public void setEmergencyContact(String emergencyContact) {
        this.emergencyContact = emergencyContact == null ? null : emergencyContact.trim();
    }

    public String getSpouseName() {
        return spouseName;
    }

    public void setSpouseName(String spouseName) {
        this.spouseName = spouseName == null ? null : spouseName.trim();
    }

    public String getSpousePhone() {
        return spousePhone;
    }

    public void setSpousePhone(String spousePhone) {
        this.spousePhone = spousePhone == null ? null : spousePhone.trim();
    }

    public Integer getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(Integer maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mainId=").append(mainId);
        sb.append(", gender=").append(gender);
        sb.append(", headerImageUrl=").append(headerImageUrl);
        sb.append(", idCardFrontUrl=").append(idCardFrontUrl);
        sb.append(", idCardReverseUrl=").append(idCardReverseUrl);
        sb.append(", address=").append(address);
        sb.append(", currentAddress=").append(currentAddress);
        sb.append(", firstContact=").append(firstContact);
        sb.append(", secondContact=").append(secondContact);
        sb.append(", emergencyContact=").append(emergencyContact);
        sb.append(", spouseName=").append(spouseName);
        sb.append(", spousePhone=").append(spousePhone);
        sb.append(", maritalStatus=").append(maritalStatus);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}